package com.chixing.day03_oop;

public class Product {
    private int prodectId;
    private String prodectName;
    private double prodectPrice;
    private String prodectAddress;

    public Product(int id, String name, double price, String address){
        System.out.println( "Id ："+ id + " " + "名称 ："+ name + " " + "价格 ：" +price + " " + " 产地：" +  address );
    }

    public int getProdectId() {
        return prodectId;
    }

    public void setProdectId(int prodectId) {
        this.prodectId = prodectId;
    }

    public String getProdectName() {
        return prodectName;
    }

    public void setProdectName(String prodectName) {
        this.prodectName = prodectName;
    }

    public double getProdectPrice() {
        return prodectPrice;
    }

    public void setProdectPrice(double prodectPrice) {
        this.prodectPrice = prodectPrice;
    }

    public String getProdectAddress() {
        return prodectAddress;
    }

    public void setProdectAddress(String prodectAddress) {
        this.prodectAddress = prodectAddress;
    }
    public void  object(Product product){
//        Product[] arr={Product.getprodectPrice()}

    }
//    public void maxPrice(){
//        int count =0;
//        if(int i=0;i<arr.length;i++){
//            if (arr[i]<300) {
//                count ++;
//            }
//            System.out.println(arr[i]);
//        }
//
//
//
//    }
//    public void priceSort(double price){
//       double[] arr=new double[10];
//       for(int i=0;i<arr.length;i++){
//           for(int j=0;j<arr.length-1-i;j++){
//               if(arr[j]>arr[j+1]){
//                   double temp = arr[j+1];
//                   arr[j+1]=arr[j];
//                   arr[j]=temp;
//               }
//
//           }
//           System.out.print(+ arr[i]+" , ");
//
//       }
//    }

}
